package com.tale.springbootatm.common.vo;

import lombok.Data;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * author: 蔡奇峰
 * date: 2020/5/2 13:34
 **/
@Data
public class MessageVO implements Serializable {

    private static final long serialVersionUID = -2515888276301067941L;
    private long bankCard; // 卡号

    private String userName;  // 用户名

    private String password;

    private int uType;

    @Pattern(regexp = "^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$", message = "邮箱格式不正确")
    private String mail;


}
